import pprint#导入pprint模块
with open('/Users/dongwududu/Desktop/测试.txt') as f:
     file_data = f.readlines()
     pprint.pprint(file_data)
     print(len(file_data))
     print(file_data.count('\n'))
     print(str(file_data).count('I'))

